The mDialogBox Component: Not Your Father's Dialog Box
Phillip Kerman
Table of Contents
As a developer, you know how convenient components are because you don't have build custom solutions for common tasks. Even more important, however, is what components mean to end users. Components offer users a consistent approach to getting their work done, so they don't have to figure out each and every custom interface element that developers create.
This imposed consistency is even truer with components in Macromedia Central because many styles are not customizable (for example, typefaces are not changeable). Although this means users will become familiar with Central applications quicker, it appears to mean that, as a developer, you're stuck with fewer options. In fact, however, whatever style limitations Central components have they more than make up for it by giving you tons of ways to customize their functionality.
Take the case of the mDialogBox component. Here you have a really sophisticated component in a seemingly simple package. Here are the most appropriate uses for mDialogBox:
- A modal dialog box, which the user can't proceed from until first making a selection
- An optional dialog box, though there are other ways to achieve this, such as regular buttons
- A multipage dialog box for related options such as user preferences
This article shows you how to build interactions such as these after first explaining how to populate and modify an mDialogBox component.
Requirements
To complete this tutorial you will need to install the following software and files:
Macromedia Central
Macromedia Central SDK
Macromedia Flash MX 2004
Tutorials and sample files:
mdialogbox.zip (106K)